package com.NetWork.PlayerStatus;

import com.Gameplay.character.Role.parentRole;

public class UpdateSystem {
    private final parentRole playerOne;
    private final parentRole playerTwo;
    private final UpdateHandler updateHandler;
    public UpdateSystem(parentRole playerOne, parentRole playerTwo) {
        this.playerOne = playerOne;
        this.playerTwo = playerTwo;
        updateHandler = new UpdateHandler();
    }
    public void update(PlayerStatus playerOneStatus, PlayerStatus playerTwoStatus) {
        updateHandler.LogicalPositionUpdate(playerOneStatus,playerTwoStatus,playerOne, playerTwo);
        updateHandler.PlayerStatusUpdate(playerOneStatus,playerTwoStatus,playerOne, playerTwo);
    }
}
